<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>libasyncd: /home/wolkykim/ws/libasyncd/include/asyncd/ad_server.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libasyncd
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('ad__server_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">ad_server.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ad__server_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * libasyncd</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (c) 2014 Seungyoung Kim.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions are met:</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * 1. Redistributions of source code must retain the above copyright notice,</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *    this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright notice,</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *    this list of conditions and the following disclaimer in the documentation</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *    and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> * ad_server header file</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * @file ad_server.h</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#ifndef _AD_SERVER_H</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _AD_SERVER_H</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;event2/event.h&gt;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &lt;event2/buffer.h&gt;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &lt;event2/bufferevent.h&gt;</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &lt;openssl/ssl.h&gt;</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;qlibc/qlibc.h&quot;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">/*---------------------------------------------------------------------------*\</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">|                                 TYPEDEFS                                    |</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment">\*---------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="ad__server_8h.html#aa7eb49058c165b0fa6cf9df9f8580d73">   51</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structad__server__s.html">ad_server_s</a> <a class="code" href="structad__server__s.html">ad_server_t</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a13ab8ad0b151e6b08c548bb36daef631">   52</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structad__conn__s.html">ad_conn_s</a> <a class="code" href="structad__conn__s.html">ad_conn_t</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment"> * Return values of user callback.</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a8d1358baba080a2f6b0d350928af7a89">   57</a></span>&#160;<span class="preprocessor">#define AD_OK       (0) </span><span class="comment">/*!&lt; I&#39;m done with this request. Escalate to other hooks. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="ad__server_8h.html#ab31b601df43a52ea6ca3647c62da51c4">   58</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AD_TAKEOVER (1) </span><span class="comment">/*!&lt; I&#39;ll handle the buffer directly this time, skip next hook */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a65ea15debc10a5e82448ff065239c4ff">   59</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AD_DONE     (2) </span><span class="comment">/*!&lt; We&#39;re done with this request but keep the connection open. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a3b06b0e022e3225a5c252f0141cb5ae4">   60</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AD_CLOSE    (3) </span><span class="comment">/*!&lt; We&#39;re done with this request. Close as soon as we sent all data out. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment"> * These flags are used for ad_log_level();</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2">   65</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2">ad_log_e</a> {</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a4822ba6b8a48d50ffab47e875a4eea85">   66</a></span>&#160;    <a class="code" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a4822ba6b8a48d50ffab47e875a4eea85">AD_LOG_DISABLE</a> = 0,</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2aadef4e51861783de662b590668c733f5">   67</a></span>&#160;    <a class="code" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2aadef4e51861783de662b590668c733f5">AD_LOG_ERROR</a>,</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2ab705340dfe4deb52d8add04540e45b95">   68</a></span>&#160;    <a class="code" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2ab705340dfe4deb52d8add04540e45b95">AD_LOG_WARN</a>,</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a854cafd75915f95a962aca0c189aebb4">   69</a></span>&#160;    <a class="code" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a854cafd75915f95a962aca0c189aebb4">AD_LOG_INFO</a>,</div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a8812ea0ff35c50043b69112e5988e906">   70</a></span>&#160;    <a class="code" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a8812ea0ff35c50043b69112e5988e906">AD_LOG_DEBUG</a>,</div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a169716146eb4ebd68a9dfab24c9d018d">   71</a></span>&#160;    <a class="code" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a169716146eb4ebd68a9dfab24c9d018d">AD_LOG_DEBUG2</a>,</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;};</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment">/*---------------------------------------------------------------------------*\</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment">|                              SERVER OPTIONS                                 |</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="comment">\*---------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment"> * Server option names and default values.</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="ad__server_8h.html#adc215edc66db6333bb058fb84ed332ca">   81</a></span>&#160;<span class="preprocessor">#define AD_SERVER_OPTIONS {  \</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">        { &quot;server.port&quot;,        &quot;8888&quot; },                                   \</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">                                                                            \</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">        </span><span class="comment">/* Addr format IPv4=&quot;1.2.3.4&quot;, IPv6=&quot;1:2:3:4:5:6&quot;, Unix=&quot;/path&quot; */</span><span class="preprocessor">  \</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">        { &quot;server.addr&quot;,        &quot;0.0.0.0&quot; },                                \</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">                                                                            \</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">        { &quot;server.backlog&quot;,     &quot;128&quot; },                                    \</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor">                                                                            \</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<span class="preprocessor">        </span><span class="comment">/* Set read timeout seconds. 0 means no timeout. */</span><span class="preprocessor">                 \</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="preprocessor">        { &quot;server.timeout&quot;,     &quot;0&quot; },                                      \</span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="preprocessor">                                                                            \</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="preprocessor">        </span><span class="comment">/* SSL options */</span><span class="preprocessor">                                                   \</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="preprocessor">        { &quot;server.enable_ssl&quot;, &quot;0&quot; },                                       \</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="preprocessor">        { &quot;server.ssl_cert&quot;, &quot;/usr/local/etc/ad_server/ad_server.crt&quot; },    \</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">        { &quot;server.ssl_pkey&quot;, &quot;/usr/local/etc/ad_server/ad_server.key&quot; },    \</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">                                                                            \</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">        </span><span class="comment">/* Enable or disable request pipelining, this change AD_DONE&#39;s behavior */</span><span class="preprocessor"> \</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">        { &quot;server.request_pipelining&quot;, &quot;1&quot; },                               \</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">                                                                            \</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor">        </span><span class="comment">/* Run server in a separate thread */</span><span class="preprocessor">                               \</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="preprocessor">        { &quot;server.thread&quot;, &quot;0&quot; },                                           \</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="preprocessor">                                                                            \</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="preprocessor">        </span><span class="comment">/* Collect resources after stop */</span><span class="preprocessor">                                  \</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="preprocessor">        { &quot;server.free_on_stop&quot;, &quot;1&quot; },                                     \</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">                                                                            \</span></div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">        </span><span class="comment">/* End of array marker. Do not remove */</span><span class="preprocessor">                            \</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">        { &quot;&quot;, &quot;_END_&quot; }                                                     \</span></div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">};</span></div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">/*---------------------------------------------------------------------------*\</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="comment">|                               USER-CALLBACK                                 |</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="comment">\*---------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="comment"> * User callback(hook) prototype.</span></div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a659a16c6e03fa96212bff528033efc84">  117</a></span>&#160;<span class="keyword">typedef</span> int (*<a class="code" href="ad__server_8h.html#a659a16c6e03fa96212bff528033efc84">ad_callback</a>)(<span class="keywordtype">short</span> event, <a class="code" href="structad__conn__s.html">ad_conn_t</a> *conn, <span class="keywordtype">void</span> *<a class="code" href="structad__conn__s.html#a157c948a7cc7157aab058ecd34fea253">userdata</a>);</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a483770c2534078a7ca37b2e6590329b8">  118</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="ad__server_8h.html#a483770c2534078a7ca37b2e6590329b8">ad_userdata_free_cb</a>)(<a class="code" href="structad__conn__s.html">ad_conn_t</a> *conn, <span class="keywordtype">void</span> *<a class="code" href="structad__conn__s.html#a157c948a7cc7157aab058ecd34fea253">userdata</a>);</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="comment"> * Event types</span></div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="ad__server_8h.html#afcba550cce3f169b37f718e3a6a7a20c">  123</a></span>&#160;<span class="preprocessor">#define AD_EVENT_INIT     (1)        </span><span class="comment">/*!&lt; Call once upon new connection. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a5cdb1e1bd63023d45c94447b4254b17d">  124</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AD_EVENT_READ     (1 &lt;&lt; 1)   </span><span class="comment">/*!&lt; Call on read */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a7ba189c66b4487ee0659d4b4e362ba4f">  125</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AD_EVENT_WRITE    (1 &lt;&lt; 2)   </span><span class="comment">/*!&lt; Call on write. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="ad__server_8h.html#af6be13c8801f47101a25514526b524a7">  126</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AD_EVENT_CLOSE    (1 &lt;&lt; 3)   </span><span class="comment">/*!&lt; Call before closing. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a9dadbc14bb0003f3072d13594c81403e">  127</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AD_EVENT_TIMEOUT  (1 &lt;&lt; 4)   </span><span class="comment">/*!&lt; Timeout indicator, this flag will be set with AD_EVENT_CLOSE. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="ad__server_8h.html#ab3b205b8862fd4a318005466961934f1">  128</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define AD_EVENT_SHUTDOWN (1 &lt;&lt; 5)   </span><span class="comment">/*!&lt; Shutdown indicator, this flag will be set with AD_EVENT_CLOSE. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor"></span><span class="comment"></span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="comment"> * Defaults</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="ad__server_8h.html#a387785dd0db9ef703e97eddf21674b05">  133</a></span>&#160;<span class="preprocessor">#define AD_NUM_USERDATA (2)  </span><span class="comment">/*!&lt; Number of userdata. Currently 0 is for userdata, 1 is for extra. */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="comment">/*---------------------------------------------------------------------------*\</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="comment">|                            DATA STRUCTURES                                  |</span></div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="comment">\*---------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;<span class="comment"> * Server info container.</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="structad__server__s.html">  142</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structad__server__s.html">ad_server_s</a> {</div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="structad__server__s.html#ac0c82aed3c82235b3788796bc7a83e0b">  143</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structad__server__s.html#ac0c82aed3c82235b3788796bc7a83e0b">errcode</a>;            <span class="comment">/*!&lt; exit status. 0 for normal exit, non zero for error. */</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="structad__server__s.html#ad09ee6ca2678d9e42124ae9d4b96d9fe">  144</a></span>&#160;    pthread_t *<a class="code" href="structad__server__s.html#ad09ee6ca2678d9e42124ae9d4b96d9fe">thread</a>;      <span class="comment">/*!&lt; thread object. not null if server runs as a thread */</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="structad__server__s.html#a2c75af08b7483c596b278c4c022cf9d5">  146</a></span>&#160;    qhashtbl_t *<a class="code" href="structad__server__s.html#a2c75af08b7483c596b278c4c022cf9d5">options</a>;            <span class="comment">/*!&lt; server options */</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="line" href="structad__server__s.html#ae8cecf112a838b40cd5b94b9b57597c0">  147</a></span>&#160;    qhashtbl_t *<a class="code" href="structad__server__s.html#ae8cecf112a838b40cd5b94b9b57597c0">stats</a>;              <span class="comment">/*!&lt; internal statistics */</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="structad__server__s.html#a23ca15bb12d9df2e28bd54dbdebc9fc3">  148</a></span>&#160;    qlist_t *<a class="code" href="structad__server__s.html#a23ca15bb12d9df2e28bd54dbdebc9fc3">hooks</a>;                 <span class="comment">/*!&lt; list of registered hooks */</span></div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="structad__server__s.html#ae184c2444743aa61f16b5228820087e6">  149</a></span>&#160;    <span class="keyword">struct </span>evconnlistener *<a class="code" href="structad__server__s.html#ae184c2444743aa61f16b5228820087e6">listener</a>; <span class="comment">/*!&lt; listener */</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="structad__server__s.html#aa156a47562ec35a753d44be40c2bd155">  150</a></span>&#160;    <span class="keyword">struct </span>event_base *<a class="code" href="structad__server__s.html#aa156a47562ec35a753d44be40c2bd155">evbase</a>;      <span class="comment">/*!&lt; event base */</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="structad__server__s.html#ac49ac0bf5c97d5c0ea7443c15860dc07">  151</a></span>&#160;    SSL_CTX *<a class="code" href="structad__server__s.html#ac49ac0bf5c97d5c0ea7443c15860dc07">sslctx</a>;                <span class="comment">/*!&lt; SSL connection support */</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="structad__server__s.html#ae17a39413f5822b4456e96b9ebd30a5d">  153</a></span>&#160;    <span class="keyword">struct </span>bufferevent *<a class="code" href="structad__server__s.html#ae17a39413f5822b4456e96b9ebd30a5d">notify_buffer</a>; <span class="comment">/*!&lt; internal notification channel */</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;};</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="comment"> * Connection structure.</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="structad__conn__s.html">  159</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structad__conn__s.html">ad_conn_s</a> {</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="structad__conn__s.html#abb9074b951a064f2790c154475c19fa8">  160</a></span>&#160;    <a class="code" href="structad__server__s.html">ad_server_t</a> *<a class="code" href="structad__conn__s.html#abb9074b951a064f2790c154475c19fa8">server</a>;        <span class="comment">/*!&lt; reference pointer to server */</span></div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="structad__conn__s.html#a2e3de19cb9eea56002d5adec7fad66cf">  161</a></span>&#160;    <span class="keyword">struct </span>bufferevent *<a class="code" href="structad__conn__s.html#a2e3de19cb9eea56002d5adec7fad66cf">buffer</a>; <span class="comment">/*!&lt; reference pointer to buffer */</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="structad__conn__s.html#a0c33794bef5cb9c633c09026173f64cd">  162</a></span>&#160;    <span class="keyword">struct </span>evbuffer *<a class="code" href="structad__conn__s.html#a0c33794bef5cb9c633c09026173f64cd">in</a>;        <span class="comment">/*!&lt; in buffer */</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="structad__conn__s.html#a30d7905f017359ece17a8c7406fc20fc">  163</a></span>&#160;    <span class="keyword">struct </span>evbuffer *<a class="code" href="structad__conn__s.html#a30d7905f017359ece17a8c7406fc20fc">out</a>;       <span class="comment">/*!&lt; out buffer */</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="structad__conn__s.html#a9b7fa3872345cd7caa315e401b7d8f7d">  164</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structad__conn__s.html#a9b7fa3872345cd7caa315e401b7d8f7d">status</a>;                 <span class="comment">/*!&lt; hook status such as AD_OK */</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="structad__conn__s.html#a157c948a7cc7157aab058ecd34fea253">  166</a></span>&#160;    <span class="keywordtype">void</span> *<a class="code" href="structad__conn__s.html#a157c948a7cc7157aab058ecd34fea253">userdata</a>[2];             <span class="comment">/*!&lt; userdata[0] for end user, userdata[1] for extra */</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="structad__conn__s.html#a88cab228f7ce7dd4b54c1a2a5cbd2c72">  167</a></span>&#160;    <a class="code" href="ad__server_8h.html#a483770c2534078a7ca37b2e6590329b8">ad_userdata_free_cb</a> <a class="code" href="structad__conn__s.html#a88cab228f7ce7dd4b54c1a2a5cbd2c72">userdata_free_cb</a>[2];  <span class="comment">/*!&lt; callback to release user data */</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="structad__conn__s.html#a3d78c01960c23c9a5db3216a74d903b5">  168</a></span>&#160;    <span class="keywordtype">char</span> *<a class="code" href="structad__conn__s.html#a3d78c01960c23c9a5db3216a74d903b5">method</a>;               <span class="comment">/*!&lt; request method. set by protocol handler */</span></div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;};</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="comment">/*----------------------------------------------------------------------------*\</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="comment">|                             PUBLIC FUNCTIONS                                 |</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="comment">\*----------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="keyword">enum</span> <a class="code" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2">ad_log_e</a> <a class="code" href="ad__server_8h.html#a1f407e2708a0c9a141d5cbeed190d73b">ad_log_level</a>(<span class="keyword">enum</span> <a class="code" href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2">ad_log_e</a> log_level);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="keyword">extern</span> <a class="code" href="structad__server__s.html">ad_server_t</a> *<a class="code" href="ad__server_8h.html#a677263079eb999133e9a0be48dd2cba5">ad_server_new</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="ad__server_8h.html#a75c74385ae98f9c9457534db0557d98e">ad_server_start</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="ad__server_8h.html#a7c8229a12c31ee8a75a8099bae6dcf81">ad_server_stop</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server);</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="ad__server_8h.html#add3ea8aae949c0fa5a6bc9b0b0e1ec70">ad_server_free</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="ad__server_8h.html#ac38aa4f50412ec4e3ed0e4f9b387e115">ad_server_global_free</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="ad__server_8h.html#a15edb8d7e1f406085dbf8c5a5c671bda">ad_server_set_option</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server, <span class="keyword">const</span> <span class="keywordtype">char</span> *key, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">char</span> *<a class="code" href="ad__server_8h.html#ac67bad711ee893259d4c4dc3717596ab">ad_server_get_option</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server, <span class="keyword">const</span> <span class="keywordtype">char</span> *key);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="ad__server_8h.html#a2b2e3ec49198b4d35e29a95dc9f06dad">ad_server_get_option_int</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server, <span class="keyword">const</span> <span class="keywordtype">char</span> *key);</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="keyword">extern</span> SSL_CTX *<a class="code" href="ad__server_8h.html#ac7ad549632ecf501e170aac234703541">ad_server_ssl_ctx_create_simple</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *cert_path, <span class="keyword">const</span> <span class="keywordtype">char</span> *pkey_path);</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="ad__server_8h.html#a34aa318f8a3872aa1e756adb38acd664">ad_server_set_ssl_ctx</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server, SSL_CTX *sslctx);</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="keyword">extern</span> SSL_CTX *<a class="code" href="ad__server_8h.html#addb05a5f42de5b20975a92fa69b52895">ad_server_get_ssl_ctx</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server);</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="keyword">extern</span> qhashtbl_t *<a class="code" href="ad__server_8h.html#a7fa3e3215415c9f7173f11ea1d276b8e">ad_server_get_stats</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server, <span class="keyword">const</span> <span class="keywordtype">char</span> *key);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="ad__server_8h.html#aeb61485fd4f4e2f13c93871558b58025">ad_server_register_hook</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server, <a class="code" href="ad__server_8h.html#a659a16c6e03fa96212bff528033efc84">ad_callback</a> cb, <span class="keywordtype">void</span> *userdata);</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="ad__server_8h.html#a4c319c4143b999a1c5e4b6d17415a500">ad_server_register_hook_on_method</a>(<a class="code" href="structad__server__s.html">ad_server_t</a> *server, <span class="keyword">const</span> <span class="keywordtype">char</span> *method,</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;                                              <a class="code" href="ad__server_8h.html#a659a16c6e03fa96212bff528033efc84">ad_callback</a> cb, <span class="keywordtype">void</span> *userdata);</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> *<a class="code" href="ad__server_8h.html#a6e2e8a73baf14dafa0842b76f31765df">ad_conn_set_userdata</a>(<a class="code" href="structad__conn__s.html">ad_conn_t</a> *conn, <span class="keyword">const</span> <span class="keywordtype">void</span> *userdata, <a class="code" href="ad__server_8h.html#a483770c2534078a7ca37b2e6590329b8">ad_userdata_free_cb</a> free_cb);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> *<a class="code" href="ad__server_8h.html#ae5630244c7bb627a0561439f3cd24aca">ad_conn_get_userdata</a>(<a class="code" href="structad__conn__s.html">ad_conn_t</a> *conn);</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> *<a class="code" href="ad__server_8h.html#a5ed8e931164315ca27568958a1d70316">ad_conn_set_extra</a>(<a class="code" href="structad__conn__s.html">ad_conn_t</a> *conn, <span class="keyword">const</span> <span class="keywordtype">void</span> *extra, <a class="code" href="ad__server_8h.html#a483770c2534078a7ca37b2e6590329b8">ad_userdata_free_cb</a> free_cb);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> *<a class="code" href="ad__server_8h.html#ad6dd41a4169cd1fcbac17462fa6b5cf8">ad_conn_get_extra</a>(<a class="code" href="structad__conn__s.html">ad_conn_t</a> *conn);</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="code" href="ad__server_8h.html#aef5876145774e9c6d38e68c06d05e34c">ad_conn_set_method</a>(<a class="code" href="structad__conn__s.html">ad_conn_t</a> *conn, <span class="keywordtype">char</span> *method);</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span>  <a class="code" href="ad__server_8h.html#a5ba67b542d4ba48ad4a25280d10ef86f">ad_conn_get_socket</a>(<a class="code" href="structad__conn__s.html">ad_conn_t</a> *conn);</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="comment">/*---------------------------------------------------------------------------*\</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="comment">|                             INTERNAL USE ONLY                               |</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="comment">\*---------------------------------------------------------------------------*/</span></div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="preprocessor">#ifndef _DOXYGEN_SKIP</span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* _DOXYGEN_SKIP */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="preprocessor"></span>}</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*_AD_SERVER_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="ad__server_8h_html_a34aa318f8a3872aa1e756adb38acd664"><div class="ttname"><a href="ad__server_8h.html#a34aa318f8a3872aa1e756adb38acd664">ad_server_set_ssl_ctx</a></div><div class="ttdeci">void ad_server_set_ssl_ctx(ad_server_t *server, SSL_CTX *sslctx)</div><div class="ttdoc">Attach OpenSSL SSL_CTX to the server. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00434">ad_server.c:434</a></div></div>
<div class="ttc" id="ad__server_8h_html_a5ba67b542d4ba48ad4a25280d10ef86f"><div class="ttname"><a href="ad__server_8h.html#a5ba67b542d4ba48ad4a25280d10ef86f">ad_conn_get_socket</a></div><div class="ttdeci">int ad_conn_get_socket(ad_conn_t *conn)</div><div class="ttdoc">Return socket file descriptor associated with a connection. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00543">ad_server.c:543</a></div></div>
<div class="ttc" id="ad__server_8h_html_a1f407e2708a0c9a141d5cbeed190d73b"><div class="ttname"><a href="ad__server_8h.html#a1f407e2708a0c9a141d5cbeed190d73b">ad_log_level</a></div><div class="ttdeci">enum ad_log_e ad_log_level(enum ad_log_e log_level)</div><div class="ttdoc">Set debug output level. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00126">ad_server.c:126</a></div></div>
<div class="ttc" id="ad__server_8h_html_a677263079eb999133e9a0be48dd2cba5"><div class="ttname"><a href="ad__server_8h.html#a677263079eb999133e9a0be48dd2cba5">ad_server_new</a></div><div class="ttdeci">ad_server_t * ad_server_new(void)</div><div class="ttdoc">Create a server object. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00135">ad_server.c:135</a></div></div>
<div class="ttc" id="structad__server__s_html_ae17a39413f5822b4456e96b9ebd30a5d"><div class="ttname"><a href="structad__server__s.html#ae17a39413f5822b4456e96b9ebd30a5d">ad_server_s::notify_buffer</a></div><div class="ttdeci">struct bufferevent * notify_buffer</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00153">ad_server.h:153</a></div></div>
<div class="ttc" id="ad__server_8h_html_ad6dd41a4169cd1fcbac17462fa6b5cf8"><div class="ttname"><a href="ad__server_8h.html#ad6dd41a4169cd1fcbac17462fa6b5cf8">ad_conn_get_extra</a></div><div class="ttdeci">void * ad_conn_get_extra(ad_conn_t *conn)</div><div class="ttdoc">Get extra userdata attached in this connection. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00520">ad_server.c:520</a></div></div>
<div class="ttc" id="ad__server_8h_html_a4c319c4143b999a1c5e4b6d17415a500"><div class="ttname"><a href="ad__server_8h.html#a4c319c4143b999a1c5e4b6d17415a500">ad_server_register_hook_on_method</a></div><div class="ttdeci">void ad_server_register_hook_on_method(ad_server_t *server, const char *method, ad_callback cb, void *userdata)</div><div class="ttdoc">Register user hook on method name. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00475">ad_server.c:475</a></div></div>
<div class="ttc" id="structad__server__s_html_ac0c82aed3c82235b3788796bc7a83e0b"><div class="ttname"><a href="structad__server__s.html#ac0c82aed3c82235b3788796bc7a83e0b">ad_server_s::errcode</a></div><div class="ttdeci">int errcode</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00143">ad_server.h:143</a></div></div>
<div class="ttc" id="ad__server_8h_html_a0fe91d344bc3f1610ea68bcec077b1c2a8812ea0ff35c50043b69112e5988e906"><div class="ttname"><a href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a8812ea0ff35c50043b69112e5988e906">AD_LOG_DEBUG</a></div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00070">ad_server.h:70</a></div></div>
<div class="ttc" id="ad__server_8h_html_a6e2e8a73baf14dafa0842b76f31765df"><div class="ttname"><a href="ad__server_8h.html#a6e2e8a73baf14dafa0842b76f31765df">ad_conn_set_userdata</a></div><div class="ttdeci">void * ad_conn_set_userdata(ad_conn_t *conn, const void *userdata, ad_userdata_free_cb free_cb)</div><div class="ttdoc">Attach userdata into the connection. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00490">ad_server.c:490</a></div></div>
<div class="ttc" id="ad__server_8h_html_a7fa3e3215415c9f7173f11ea1d276b8e"><div class="ttname"><a href="ad__server_8h.html#a7fa3e3215415c9f7173f11ea1d276b8e">ad_server_get_stats</a></div><div class="ttdeci">qhashtbl_t * ad_server_get_stats(ad_server_t *server, const char *key)</div><div class="ttdoc">Return internal statistic counter map. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00461">ad_server.c:461</a></div></div>
<div class="ttc" id="structad__conn__s_html_a9b7fa3872345cd7caa315e401b7d8f7d"><div class="ttname"><a href="structad__conn__s.html#a9b7fa3872345cd7caa315e401b7d8f7d">ad_conn_s::status</a></div><div class="ttdeci">int status</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00164">ad_server.h:164</a></div></div>
<div class="ttc" id="ad__server_8h_html_a2b2e3ec49198b4d35e29a95dc9f06dad"><div class="ttname"><a href="ad__server_8h.html#a2b2e3ec49198b4d35e29a95dc9f06dad">ad_server_get_option_int</a></div><div class="ttdeci">int ad_server_get_option_int(ad_server_t *server, const char *key)</div><div class="ttdoc">Retrieve server option in integer format. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00384">ad_server.c:384</a></div></div>
<div class="ttc" id="structad__server__s_html_ae8cecf112a838b40cd5b94b9b57597c0"><div class="ttname"><a href="structad__server__s.html#ae8cecf112a838b40cd5b94b9b57597c0">ad_server_s::stats</a></div><div class="ttdeci">qhashtbl_t * stats</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00147">ad_server.h:147</a></div></div>
<div class="ttc" id="structad__conn__s_html_a2e3de19cb9eea56002d5adec7fad66cf"><div class="ttname"><a href="structad__conn__s.html#a2e3de19cb9eea56002d5adec7fad66cf">ad_conn_s::buffer</a></div><div class="ttdeci">struct bufferevent * buffer</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00161">ad_server.h:161</a></div></div>
<div class="ttc" id="structad__server__s_html_ac49ac0bf5c97d5c0ea7443c15860dc07"><div class="ttname"><a href="structad__server__s.html#ac49ac0bf5c97d5c0ea7443c15860dc07">ad_server_s::sslctx</a></div><div class="ttdeci">SSL_CTX * sslctx</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00151">ad_server.h:151</a></div></div>
<div class="ttc" id="ad__server_8h_html_a7c8229a12c31ee8a75a8099bae6dcf81"><div class="ttname"><a href="ad__server_8h.html#a7c8229a12c31ee8a75a8099bae6dcf81">ad_server_stop</a></div><div class="ttdeci">void ad_server_stop(ad_server_t *server)</div><div class="ttdoc">Stop server. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00287">ad_server.c:287</a></div></div>
<div class="ttc" id="structad__conn__s_html_a30d7905f017359ece17a8c7406fc20fc"><div class="ttname"><a href="structad__conn__s.html#a30d7905f017359ece17a8c7406fc20fc">ad_conn_s::out</a></div><div class="ttdeci">struct evbuffer * out</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00163">ad_server.h:163</a></div></div>
<div class="ttc" id="structad__conn__s_html_a0c33794bef5cb9c633c09026173f64cd"><div class="ttname"><a href="structad__conn__s.html#a0c33794bef5cb9c633c09026173f64cd">ad_conn_s::in</a></div><div class="ttdeci">struct evbuffer * in</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00162">ad_server.h:162</a></div></div>
<div class="ttc" id="ad__server_8h_html_a0fe91d344bc3f1610ea68bcec077b1c2"><div class="ttname"><a href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2">ad_log_e</a></div><div class="ttdeci">ad_log_e</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00065">ad_server.h:65</a></div></div>
<div class="ttc" id="structad__conn__s_html_abb9074b951a064f2790c154475c19fa8"><div class="ttname"><a href="structad__conn__s.html#abb9074b951a064f2790c154475c19fa8">ad_conn_s::server</a></div><div class="ttdeci">ad_server_t * server</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00160">ad_server.h:160</a></div></div>
<div class="ttc" id="structad__server__s_html_ae184c2444743aa61f16b5228820087e6"><div class="ttname"><a href="structad__server__s.html#ae184c2444743aa61f16b5228820087e6">ad_server_s::listener</a></div><div class="ttdeci">struct evconnlistener * listener</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00149">ad_server.h:149</a></div></div>
<div class="ttc" id="ad__server_8h_html_add3ea8aae949c0fa5a6bc9b0b0e1ec70"><div class="ttname"><a href="ad__server_8h.html#add3ea8aae949c0fa5a6bc9b0b0e1ec70">ad_server_free</a></div><div class="ttdeci">void ad_server_free(ad_server_t *server)</div><div class="ttdoc">Release server object and all the resources. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00303">ad_server.c:303</a></div></div>
<div class="ttc" id="ad__server_8h_html_a5ed8e931164315ca27568958a1d70316"><div class="ttname"><a href="ad__server_8h.html#a5ed8e931164315ca27568958a1d70316">ad_conn_set_extra</a></div><div class="ttdeci">void * ad_conn_set_extra(ad_conn_t *conn, const void *extra, ad_userdata_free_cb free_cb)</div><div class="ttdoc">Set extra userdata into the connection. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00513">ad_server.c:513</a></div></div>
<div class="ttc" id="structad__conn__s_html_a3d78c01960c23c9a5db3216a74d903b5"><div class="ttname"><a href="structad__conn__s.html#a3d78c01960c23c9a5db3216a74d903b5">ad_conn_s::method</a></div><div class="ttdeci">char * method</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00168">ad_server.h:168</a></div></div>
<div class="ttc" id="structad__conn__s_html_a88cab228f7ce7dd4b54c1a2a5cbd2c72"><div class="ttname"><a href="structad__conn__s.html#a88cab228f7ce7dd4b54c1a2a5cbd2c72">ad_conn_s::userdata_free_cb</a></div><div class="ttdeci">ad_userdata_free_cb userdata_free_cb[2]</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00167">ad_server.h:167</a></div></div>
<div class="ttc" id="structad__server__s_html_a2c75af08b7483c596b278c4c022cf9d5"><div class="ttname"><a href="structad__server__s.html#a2c75af08b7483c596b278c4c022cf9d5">ad_server_s::options</a></div><div class="ttdeci">qhashtbl_t * options</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00146">ad_server.h:146</a></div></div>
<div class="ttc" id="ad__server_8h_html_ac38aa4f50412ec4e3ed0e4f9b387e115"><div class="ttname"><a href="ad__server_8h.html#ac38aa4f50412ec4e3ed0e4f9b387e115">ad_server_global_free</a></div><div class="ttdeci">void ad_server_global_free(void)</div><div class="ttdoc">Clean up all the global objects. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00352">ad_server.c:352</a></div></div>
<div class="ttc" id="ad__server_8h_html_a483770c2534078a7ca37b2e6590329b8"><div class="ttname"><a href="ad__server_8h.html#a483770c2534078a7ca37b2e6590329b8">ad_userdata_free_cb</a></div><div class="ttdeci">void(* ad_userdata_free_cb)(ad_conn_t *conn, void *userdata)</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00118">ad_server.h:118</a></div></div>
<div class="ttc" id="structad__conn__s_html"><div class="ttname"><a href="structad__conn__s.html">ad_conn_s</a></div><div class="ttdoc">Connection structure. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00159">ad_server.h:159</a></div></div>
<div class="ttc" id="ad__server_8h_html_ac67bad711ee893259d4c4dc3717596ab"><div class="ttname"><a href="ad__server_8h.html#ac67bad711ee893259d4c4dc3717596ab">ad_server_get_option</a></div><div class="ttdeci">char * ad_server_get_option(ad_server_t *server, const char *key)</div><div class="ttdoc">Retrieve server option. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00377">ad_server.c:377</a></div></div>
<div class="ttc" id="ad__server_8h_html_ac7ad549632ecf501e170aac234703541"><div class="ttname"><a href="ad__server_8h.html#ac7ad549632ecf501e170aac234703541">ad_server_ssl_ctx_create_simple</a></div><div class="ttdeci">SSL_CTX * ad_server_ssl_ctx_create_simple(const char *cert_path, const char *pkey_path)</div><div class="ttdoc">Helper method for creating minimal OpenSSL SSL_CTX object. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00404">ad_server.c:404</a></div></div>
<div class="ttc" id="ad__server_8h_html_aeb61485fd4f4e2f13c93871558b58025"><div class="ttname"><a href="ad__server_8h.html#aeb61485fd4f4e2f13c93871558b58025">ad_server_register_hook</a></div><div class="ttdeci">void ad_server_register_hook(ad_server_t *server, ad_callback cb, void *userdata)</div><div class="ttdoc">Register user hook. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00468">ad_server.c:468</a></div></div>
<div class="ttc" id="ad__server_8h_html_a0fe91d344bc3f1610ea68bcec077b1c2aadef4e51861783de662b590668c733f5"><div class="ttname"><a href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2aadef4e51861783de662b590668c733f5">AD_LOG_ERROR</a></div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00067">ad_server.h:67</a></div></div>
<div class="ttc" id="structad__conn__s_html_a157c948a7cc7157aab058ecd34fea253"><div class="ttname"><a href="structad__conn__s.html#a157c948a7cc7157aab058ecd34fea253">ad_conn_s::userdata</a></div><div class="ttdeci">void * userdata[2]</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00166">ad_server.h:166</a></div></div>
<div class="ttc" id="ad__server_8h_html_a0fe91d344bc3f1610ea68bcec077b1c2a854cafd75915f95a962aca0c189aebb4"><div class="ttname"><a href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a854cafd75915f95a962aca0c189aebb4">AD_LOG_INFO</a></div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00069">ad_server.h:69</a></div></div>
<div class="ttc" id="ad__server_8h_html_a0fe91d344bc3f1610ea68bcec077b1c2a4822ba6b8a48d50ffab47e875a4eea85"><div class="ttname"><a href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a4822ba6b8a48d50ffab47e875a4eea85">AD_LOG_DISABLE</a></div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00066">ad_server.h:66</a></div></div>
<div class="ttc" id="ad__server_8h_html_ae5630244c7bb627a0561439f3cd24aca"><div class="ttname"><a href="ad__server_8h.html#ae5630244c7bb627a0561439f3cd24aca">ad_conn_get_userdata</a></div><div class="ttdeci">void * ad_conn_get_userdata(ad_conn_t *conn)</div><div class="ttdoc">Get userdata attached in the connection. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00499">ad_server.c:499</a></div></div>
<div class="ttc" id="ad__server_8h_html_addb05a5f42de5b20975a92fa69b52895"><div class="ttname"><a href="ad__server_8h.html#addb05a5f42de5b20975a92fa69b52895">ad_server_get_ssl_ctx</a></div><div class="ttdeci">SSL_CTX * ad_server_get_ssl_ctx(ad_server_t *server)</div><div class="ttdoc">Get OpenSSL SSL_CTX object. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00454">ad_server.c:454</a></div></div>
<div class="ttc" id="ad__server_8h_html_a0fe91d344bc3f1610ea68bcec077b1c2ab705340dfe4deb52d8add04540e45b95"><div class="ttname"><a href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2ab705340dfe4deb52d8add04540e45b95">AD_LOG_WARN</a></div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00068">ad_server.h:68</a></div></div>
<div class="ttc" id="ad__server_8h_html_a15edb8d7e1f406085dbf8c5a5c671bda"><div class="ttname"><a href="ad__server_8h.html#a15edb8d7e1f406085dbf8c5a5c671bda">ad_server_set_option</a></div><div class="ttdeci">void ad_server_set_option(ad_server_t *server, const char *key, const char *value)</div><div class="ttdoc">Set server option. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00370">ad_server.c:370</a></div></div>
<div class="ttc" id="ad__server_8h_html_aef5876145774e9c6d38e68c06d05e34c"><div class="ttname"><a href="ad__server_8h.html#aef5876145774e9c6d38e68c06d05e34c">ad_conn_set_method</a></div><div class="ttdeci">void ad_conn_set_method(ad_conn_t *conn, char *method)</div><div class="ttdoc">Set method name on this connection. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00532">ad_server.c:532</a></div></div>
<div class="ttc" id="ad__server_8h_html_a659a16c6e03fa96212bff528033efc84"><div class="ttname"><a href="ad__server_8h.html#a659a16c6e03fa96212bff528033efc84">ad_callback</a></div><div class="ttdeci">int(* ad_callback)(short event, ad_conn_t *conn, void *userdata)</div><div class="ttdoc">User callback(hook) prototype. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00117">ad_server.h:117</a></div></div>
<div class="ttc" id="structad__server__s_html_a23ca15bb12d9df2e28bd54dbdebc9fc3"><div class="ttname"><a href="structad__server__s.html#a23ca15bb12d9df2e28bd54dbdebc9fc3">ad_server_s::hooks</a></div><div class="ttdeci">qlist_t * hooks</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00148">ad_server.h:148</a></div></div>
<div class="ttc" id="ad__server_8h_html_a75c74385ae98f9c9457534db0557d98e"><div class="ttname"><a href="ad__server_8h.html#a75c74385ae98f9c9457534db0557d98e">ad_server_start</a></div><div class="ttdeci">int ad_server_start(ad_server_t *server)</div><div class="ttdoc">Start server. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8c_source.html#l00164">ad_server.c:164</a></div></div>
<div class="ttc" id="structad__server__s_html_ad09ee6ca2678d9e42124ae9d4b96d9fe"><div class="ttname"><a href="structad__server__s.html#ad09ee6ca2678d9e42124ae9d4b96d9fe">ad_server_s::thread</a></div><div class="ttdeci">pthread_t * thread</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00144">ad_server.h:144</a></div></div>
<div class="ttc" id="structad__server__s_html"><div class="ttname"><a href="structad__server__s.html">ad_server_s</a></div><div class="ttdoc">Server info container. </div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00142">ad_server.h:142</a></div></div>
<div class="ttc" id="ad__server_8h_html_a0fe91d344bc3f1610ea68bcec077b1c2a169716146eb4ebd68a9dfab24c9d018d"><div class="ttname"><a href="ad__server_8h.html#a0fe91d344bc3f1610ea68bcec077b1c2a169716146eb4ebd68a9dfab24c9d018d">AD_LOG_DEBUG2</a></div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00071">ad_server.h:71</a></div></div>
<div class="ttc" id="structad__server__s_html_aa156a47562ec35a753d44be40c2bd155"><div class="ttname"><a href="structad__server__s.html#aa156a47562ec35a753d44be40c2bd155">ad_server_s::evbase</a></div><div class="ttdeci">struct event_base * evbase</div><div class="ttdef"><b>Definition:</b> <a href="ad__server_8h_source.html#l00150">ad_server.h:150</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_9273431fadbcee3009b231da59d31b6f.html">asyncd</a></li><li class="navelem"><a class="el" href="ad__server_8h.html">ad_server.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
